-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autocomplete: Put best matches near input field. #1131
base: main
Are you sure you want to change the base?
autocomplete: Put best matches near input field. #1131
Conversation
a146a49
to
bd3a205
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @apoorvapendse! Left some comment.
This doesn't fix #1123 because the emoji picker (added in #1103) is a feature separate from autocompletion, so please update the PR comment and the commit message to reflect that.
// biohazardOptionLabel, this won't be rendered in the list initally since it is the 7th option. | ||
]; | ||
|
||
await tester.enterText(composeInputFinder, 'hi :'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a comment here if it's also affected by #226.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not understand?
bd3a205
to
129434b
Compare
This commit reverses the list that was originally presented to the user while showing the typeahead menu. This makes sense since on mobile its easier to click on options closer to the input box, i.e. where your fingers are currently present, instead of pressing arrow keys on a keyboard which is true on a desktop setup. Hence we place the best matching options not at the top of the typeahead menu, but instead put them at the bottom for better reachability and convenience of the user. Tests have been added to verify the emoji and mention render behavior. Fixes zulip#1121.
129434b
to
b35ddbf
Compare
|
||
final expectedUserSequence = users; | ||
// Options are filtered correctly for query | ||
// TODO(#226): Remove this extra edit when this bug is fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In #1131 (comment), I was referring to this comment here.
This commit reverses the list that was originally
presented to the user while showing the typeahead
menu.
This makes sense since on mobile its easier to click on options closer to the input box, i.e. where your fingers are currently present, instead of pressing arrow keys to navigate through the options on a keyboard which is convenient on a desktop setup.
Hence we place the best matching options not at the top of the typeahead menu, but instead at the bottom for better reachability and convenience of the user.
CZO
Fixes #1121.
Here is a demo:
Screencast from 12-11-2024 12:38:19 PM.webm